Ext.define("wmf.store.role.roleGrid", {
    extend: "Ext.data.Store",
    model: "wmf.model.role.role",
	requires: [
	],
	rootVisible: true,
    proxy: {
        type: 'ajax',
        url: 'action/loadResourceTreeActions.do',
        reader: {
            type: 'json',
            root: 'roleAuths'
        }
    },
    
    listeners : {  
        beforeload : function(store, operation) {  
       		var params = wmf.roleGrid.params;  
       		store.proxy.extraParams = {};
       		Ext.apply(store.proxy.extraParams, params);
        }
    },
    
	storeId: 'role.roleGird'
});